package com.advert.presentation.tools;

import org.jboss.seam.ScopeType;
import org.jboss.seam.annotations.Factory;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Scope;

import java.io.Serializable;
import java.util.Locale;

@Name("sessionFactory")
@Scope(ScopeType.SESSION)
public class SessionFactory implements Serializable {

    @Factory(value = "locale", autoCreate = true)
    public Locale getLocale() {
        return new Locale("ru");
    }
}
